.postwindow {
    padding: 0 20px;
}

.container {
    margin: 0 auto;
    padding: 160px 0;
    max-width: 1000px;
    min-height: calc(100vh - 420px);

}

.wrapper {
    box-shadow: 0px 1px 8px 0px grey;
}

.header {
    border: .5px solid grey;

}

.inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0 8px 5px;
}

.icon {
    box-sizing: border-box;
    color: rgba(128, 128, 128, 0.3);
    transition: all .3s;
    padding: 2px;
    border-radius: 50%;
    align-self: center;
}

.icon:hover {
    color: rgba(128, 128, 128, 0.8);
    transition: all .3s;
    background-color: rgba(128, 128, 128, 0.1);
}

.icon:active {
    color: red;
}


.headerRight {
    display: flex;
    width: 40%;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    padding: 0 30px;
}

.avatar {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all .3s;
}

.avatar:hover {
    filter: brightness(1.2);
}

.authorInfo {
    cursor: pointer;
    transition: all .3s;
}

.authorInfo:hover {
    color: rgba(0, 0, 0, 0.6);
}

.main {
    display: flex;
}

.img {
    width: 60%;
    border-bottom: .5px solid grey;
    border-left: .5px solid grey;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    display: flex;
    margin-left: auto;
    cursor: pointer;
    box-sizing: border-box;
    color: rgba(128, 128, 128, 0.4);


}

.edit {
    display:flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    padding: 7px 9px;
    border-radius: 50%;
    transition: all .3s;
}

.edit:hover {
    background-color: rgba(128, 128, 128, 0.1);
    color: black;
    transition: all .3s;
}

.save {
    color: rgb(59, 59, 59, 0.7);
    transform: scale(1.1);
    transition: all .5s;
}

.save:hover {
    color: rgba(255, 0, 0, 0.5);
    transform: scale(1.15);
    transition: all .5s;
}

.delete {
    display:flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 7px 9px;
    transition: all .3s;
}

.delete:hover {
    background-color: rgba(128, 128, 128, 0.1);
    color: black;
    transition: all .3s;
}


.right {
    position: relative;
    width: 40%;
    display: flex;
    flex-direction: column;
    border-right: .5px solid grey; 
    border-bottom: .5px solid grey; 
    text-align: justify;
    padding: 5px 30px;
    box-sizing: border-box;
}



.updatePost {
    text-align: right;
}

.title {
    padding-bottom: 10px;
    text-align: left;
    position: relative;
}

.title::after {
    content: "";
    width:100%;
    height: 1px;
    border-bottom: .5px solid lightgray;
    position: absolute;
    bottom: 5px;
    left: 0;

    /* transform: translateX(50%); */

}

.date {
    font-size: 12px;
    color: rgb(180, 180, 180);
}

.time {
    margin-left: 7px;
}

.bottom {
    padding-top: 15px;
    margin-top: auto;
    position: relative;
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 15px;
}

.bottom::after {    
    content: "";
    width:100%;
    height: 1px;
    border-top: .5px solid lightgray;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;

}


.like {
    /* position: absolute; */
    position: relative;
    /* bottom: 5px;
    left: 20px; */
}

.numLike {
    position: absolute;
    bottom: 0;
    right: 0px;
    font-size: 14px;
}

.likesUser {
    position: absolute;
    bottom: -5px;
    left: -10px;
    opacity: .2;
    cursor: pointer;
    transition: all .3s;
}

.likesUser:hover {
    opacity: .5;
}

.likesUser:active {
    color: rgba(255, 0, 0, 0.4);
}

.userWrapper {
    max-height: 200px;
    width: 300px;
    overflow-y: scroll;    
    padding: 20px;
    position: relative;
}

.closeLikes {
    padding: 8px;
    position: absolute;
    top: -15px;
    right: 5px;
    font-size: 30px;
    cursor: pointer;
    color: lightgray;
    transition: color 0.3s;
  }
  
  .closeLikes:hover {
    color: black;
    transition: color 0.3s;
  }

.titleLike {
    text-align: center;
    font-size: 16px;
    padding-bottom: 15px;
    position: relative;
}

.titleLike::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.6);
    width: 100%;

}


.favorite {
    color: red;
}

.tag {
    /* width: 50%; */
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    /* position: absolute; */
    bottom: 5px;
    right: 20px;
}

.footerWrap {
    display: flex;
    justify-content: flex-end;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.footerWrap:first-child {
    width: 60%;
}

.footer {
    width: 40%;
    box-sizing: border-box;
}

.newComment {
    width: 40%;
    box-sizing: border-box;
    text-align: center;
}


.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.form > textarea {
    font-family:"Roboto","Helvetica","Arial",sans-serif;
    box-sizing: border-box;
    border: .3px solid gray;
    border-radius: 10px;
    font-size: 16px;
    padding: 10px;
    width: 100%;
    height: 40px;
    outline: none;
    background: rgba(211, 211, 211, 0.2);
    transition: all .3s;
    resize: none;
}

.form > textarea:focus {
    background-color: white;
    box-shadow: 3px 5px 8px -5px gray;
    transition: all .3s;
}

.input {
    width: 100%;
    outline: none;
    border-radius: 6px;
    padding: 3px;
    border: .3px solid gray;
    font-size: 16px;
    box-sizing: border-box;
}

.inpTag {
    width: auto;
}

.input:focus {
    border: .3px solid black;
    box-shadow: 0 0 3px 0 black;
}

.textarea {
    height: 200px;
    width: 100%;
    resize: vertical;
    box-sizing: border-box;
    padding: 5px;
    border-radius: 6px;
    outline: none;
    font-size: 16px;
    font-family:"Roboto","Helvetica","Arial",sans-serif;
}

.textarea:focus {
    border: .3px solid black;
    box-shadow: 0 0 3px 0 black;
}



.right label {
    color: gray;
    font-size: 14px;
}

.notification {
    position: fixed;
    left: 20px;
    bottom: 20px;    
}

.moreComments {
    padding-top: 20px;
    text-align: center;
}

@media (max-width: 750px) {
    .container {
        padding: 30px 0; 
    }

    .main {
        flex-direction: column;
    }

    .headerRight {
        width: auto;
    }

    .img {
        width: auto;
    }

    .right {
        width: auto;
    }

    .footerWrap {
        justify-content: center;
    }

    .footer {
        width: 100%;
    }

    .newComment {
        width: 50%;
        text-align: center;
    }

}

@media (max-width: 450px) {
    .newComment {
        width: 100%;
    }

    .btn {
        flex-direction: column;
    }

    .userWrapper {
        width: auto;
    }
}